package com.yuyou.train.admin.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;

import com.yuyou.train.service.api.admin.entity.AuthRole;
import com.yuyou.train.util.bean.Pagination;

@Mapper
public interface AuthRoleMapper {
    int deleteByPrimaryKey(String id);

    int insert(AuthRole authRole);

    int insertSelective(AuthRole record);

    AuthRole selectByPrimaryKey(String id);

    AuthRole selectByRoleName(String roleName);

    int updateByPrimaryKeySelective(AuthRole record);

    int updateByPrimaryKeyWithBLOBs(AuthRole record);

    int updateByPrimaryKey(AuthRole record);

    int findAuthRolePageCount(Pagination<AuthRole> p);

    List<AuthRole> findAuthRolePageList(Pagination<AuthRole> p);

    List<AuthRole> findAuthRoleList();
}